package com.gzs.learn.springcloud.service.exception;

import lombok.Getter;

@Getter
public class UserSystemException extends RuntimeException {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private final String msg;

    public UserSystemException() {
        this.msg = "user system error";
    }

    public UserSystemException(String msg) {
        this.msg = msg;
    }

    public UserSystemException(String msg, Throwable t) {
        super(msg, t);
        this.msg = msg;
    }

    public UserSystemException( Long userId,String msg) {
        this.msg = String.format("userId:[%s],msg:%s", userId, msg);
    }
}
